<?php
require_once 'models/entite_historique.php';
?>

<form action="?section=entite_historique&action=add" method="post">
	<fieldset>
	<legend>Ajout :</legend>
		<label for="type">Type : </label>
		<select name="type" id="type">
		<?php
		foreach(entite_historique::$TYPES as $t)
		{
			echo '<option value="' . $t . '">' . $t . '</option>';
		}
		?>
		</select>
			<br>
		<label for="nom">Nom : </label>
		<input type="text" name="nom" id="nom" required="required"/>
			<br>
		<label for="description">Description : </label><br>
		<textarea name="description" id="description"></textarea>
			<br>
		<label for="wiki">Wiki : </label>
		<input type="url" name="wiki" id="wiki"/>
			<br>
		<label for="profondeur">Profondeur : </label>
		<input type="number" name="profondeur" id="profondeur" required="required" value="0"/>
			<br>
		<label for="creation">Date de création (jj/mm/saaaa): </label>
		<input type="text" name="creation" id="creation"/>
					<br>
		<label for="dissolution">Date de dissolution (jj/mm/saaaa): </label>
		<input type="text" name="dissolution" id="dissolution"/>
			<br>
		<input type="submit"/>
	</fieldset>
</form>